$.ajaxPrefilter(function(options){
    options.url='http://www.liulongbin.top:3007'+options.url

   if(options.url.indexOf('/my/')!==-1){
    options.headers={
        Authorization :localStorage.getItem('token')
    }
   }

   options.complete=function(xhr){
    console.log(xhr);
    if(xhr.responseJSON.status===1&&xhr.responseJSON.message==='身份认证失败！'){
        localStorage.removeItem('token')
        location.href='login.html'
    }
}
})